<agenttpl file="user_center_header" />
<style type="text/css">
    .cuttitle{display:inline-block;;*display:inline;width:130px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;cursor:pointer;}
    .search-results .table-content table tr th{vertical-align:middle;font-size:12px;}
    .search-results .table-content table tr td{vertical-align:middle;font-size:12px;}
</style>

<section>
    <div class="user_center main">
        <div class="banner_1">
            <img src="__PUBLIC__img/1200-200+.jpg" alt=""/>
        </div>
        <div class="user_center_main page-content">
            <agenttpl file="share/side" />   
                <div class="page-right my-game">
                    <form id="queryForm" action="{:U('Agent/data/getUserPayment')}" method="get">
                        <div class="input-content" style="height:80px;">
                            <div class="search-game" >
                                <span>游戏:</span>
                                <input type="text" name="game_name" id="gamename" value="{$formget.game_name}" maxlength="25" placeholder="请输入游戏ID或游戏名称">
                            </div>
                            <div class="choose-channel">
                                <span>玩家：</span>
                                <input type="text" name="mem_name" id="memname" value="{$formget.mem_name}" maxlength="20" placeholder="">
                            </div>                            
                            <div class="search-btn" style="margin-top:30px;">搜 &nbsp;索</div>
                        </div>
                    </form>
                    <div class="search-results">

                        <div class="results-header">
                            <span class="game-num">共找到<i>{$num_of_records}</i>个记录</span>
                        </div>
                        <div class="table-content">
                            <table border="0" cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr>
                                        <th width="130">订单号</th>
                                        <th width="104">支付类型</th>
                                        <th width="180" style="text-align:center;"class="game-name-th">游戏名称</th>
                                        <th width="110">玩家游戏账号</th>
                                        <th width="110">所属代理</th>
                                        <th width="110">所属代理类型</th>
                                        
                                        <th width="130">充值时间</th>
                                        <th width="80">分成比例</th>
                                        <th width="80">{:C(CURRENCY_NAME)}金额</th>
                                        <!--<th width="80">收入总额</th>-->
                                    </tr>
<!--                                    <tr style="color:#0ae;">
                                        <td>汇总</td>
                                        <td>--</td>
                                        <td>--</td>
                                        <td>--</td>
                                        <td>--</td>
                                        <td>--</td>
                                        <td>{$sumitems[0]['sum_cnt']}</td>
                                    </tr>   -->
                                    <volist name="records" id="vo">
                                        <tr>
                                            <td>{$vo.order_id}</td>
                                            <td>
                                                <switch name='vo.payway'>
                                                    <case value='ptb'>渠道账户余额</case>
                                                    <case value='alipay'>支付宝</case>
                                                    <case value='unionpay'>银联</case>
                                                </switch>                                                                                                      
                                            </td>
                                            <td>{$vo.gamename}</td>
                                            <td>{$vo.memname}</td>
                                            <td>{$vo.user_login}</td>
                                            <td>{$vo.user_type}</td>
                                            
                                            <td><?php echo date("Y-m-d H:i:s",$vo['create_time']); ?></td>
                                            <td class="total-revenue">{$vo.discount}</td>
                                            <td class="total-revenue">{$vo.gm_cnt}</td>
                                        </tr>                                    
                                    </volist>                                                                        
                                </tbody>
                            </table>
                            <div class="page" style="">
                                <div class="paging">{$Page}</div>
                            </div>                          
                        </div>
                    </div>
                </div>
<!--    <section>
        <div class="user_center main">
            <div class="user_center_main page-content">
                
            </div>
        </div>
    </section>-->

<script src="__PUBLIC__js/autoPage.js"></script>
<script src="__PUBLIC__My97DatePicker/WdatePicker.js"></script>
<script src="__PUBLIC__js/mygames.js"></script>
<script>
$(".search-btn").live("click",function(){
//    console.log(111);
//    var arr={"name":$("#gamequeryForm").val(),"channel":$("#agenttagForm").val(),"time1":$("#stime").val(),timer2:$("#etime").val()};
//    sendData("{:U('Agent/money/getuserpayment_post')}",arr,function(data){
////        yxalert("已发送搜索数据...");
//yxalert(data.msg);
//    });
$("#queryForm").submit();
});       
</script>
</div>
    </div>
</section>
<agenttpl file="user_center_footer" />